<?php


namespace app\common\models;


use app\common\traits\BaseModelOptionTrait;
use think\Model;

class Admin extends Model
{
    use BaseModelOptionTrait;

    protected $table = 'xiangji_administrators';


    protected $deleteTime = 'delete_time';

    protected $hidden = ['password'];

    // 自动维护时间戳
    protected $autoWriteTimestamp = true;

    // 双md5加密密码
    public function setPasswordAttr($value)
    {
        return md5(md5($value));
    }


}
